home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / opttree.zip / OWL.ZIP / OTTSTAPP.RC < prev    next >
Text File  |  1995-01-03  |  15KB  |  383 lines

  1. /*  Main ottest
  2.     Freeman-Teresa Software
  3.     Copyright ⌐ 1994. All Rights Reserved.
  4.  
  5.     SUBSYSTEM:    ottest.exe Application
  6.     FILE:         ottstapp.rc
  7.     AUTHOR:       Kent Tong
  8.  
  9.  
  10.     OVERVIEW
  11.     ========
  12.     All resources defined here.      
  13. */
  14.  
  15. #if !defined(WORKSHOP_INVOKED)
  16. #include <windows.h>
  17. #endif
  18. #include "ottstapp.rh"
  19.  
  20. SDI_MENU MENU 
  21. {
  22.  POPUP "&File"
  23.  {
  24.   MENUITEM "E&xit\tAlt+F4", CM_EXIT
  25.  }
  26.  
  27.  POPUP "F&unctionality"
  28.  {
  29.   MENUITEM "As Option Tree       ", CM_TEST1
  30.   MENUITEM "As Option List", CM_TEST2
  31.   MENUITEM "As Tree View", CM_TEST3
  32.   MENUITEM "As List Box", CM_TEST4
  33.  }
  34.  
  35.  POPUP "&Capacity"
  36.  {
  37.   MENUITEM "10000 Items Option Tree", CM_TEST5
  38.   MENUITEM "10000 Items Option List", CM_TEST6
  39.   MENUITEM "10000 Items Tree View", CM_TEST7
  40.   MENUITEM "10000 Items List Box", CM_TEST8
  41.  }
  42.  
  43.  POPUP "&Help"
  44.  {
  45.   MENUITEM "&About...", CM_HELPABOUT
  46.  }
  47.  
  48. }
  49.  
  50.  
  51. // Accelerator table for short-cut to menu commands. (include\owl\editfile.rc)
  52. SDI_MENU ACCELERATORS
  53. BEGIN
  54.   VK_DELETE, CM_EDITCUT, VIRTKEY, SHIFT
  55.   VK_INSERT, CM_EDITCOPY, VIRTKEY, CONTROL
  56.   VK_INSERT, CM_EDITPASTE, VIRTKEY, SHIFT
  57.   VK_DELETE, CM_EDITCLEAR, VIRTKEY, CONTROL
  58.   VK_BACK,   CM_EDITUNDO, VIRTKEY, ALT
  59.   VK_F3,     CM_EDITFINDNEXT, VIRTKEY
  60. END
  61.  
  62.  
  63. //
  64. // Table of help hints displayed in the status bar.
  65. //
  66. STRINGTABLE 
  67. {
  68.  -1, "File/document operations"
  69.  CM_FILENEW, "Creates a new window"
  70.  CM_FILEOPEN, "Opens a window"
  71.  CM_FILECLOSE, "Close this document"
  72.  CM_FILESAVE, "Saves this document"
  73.  CM_FILESAVEAS, "Saves this document with a new name"
  74.  CM_EXIT, "Quits the test application"
  75.  CM_EDITUNDO -1, "Edit operations"
  76.  CM_EDITUNDO, "Reverses the last operation"
  77.  CM_EDITCUT, "Cuts the selection and puts it on the Clipboard"
  78.  CM_EDITCOPY, "Copies the selection and puts it on the Clipboard"
  79.  CM_EDITPASTE, "Inserts the clipboard contents at the insertion point"
  80.  CM_EDITDELETE, "Deletes the selection"
  81.  CM_EDITCLEAR, "Clear the document"
  82.  CM_EDITFIND -1, "Search/replace operations"
  83.  CM_EDITFIND, "Finds the specified text"
  84.  CM_EDITREPLACE, "Finds the specified text and changes it"
  85.  CM_EDITFINDNEXT, "Finds the next match"
  86.  CM_HELPABOUT -1, "Access About"
  87.  CM_HELPABOUT, "About the ottest application"
  88.  CM_TEST1, "Use the custom control at its full versatility"
  89.  CM_TEST2, "Use the custom control as an option list"
  90.  CM_TEST3, "Use the custom control as a tree view"
  91.  CM_TEST11, "An option tree with 2000 items"
  92.  CM_TEST12, "An option tree with 4000 items"
  93.  CM_TEST13, "An option tree with 6000 items"
  94.  CM_TEST14, "An option tree with 8000 items"
  95.  CM_TEST5, "An option tree with 10000 items"
  96.  CM_TEST21, "An option list with 2000 items"
  97.  CM_TEST22, "An option list with 4000 items"
  98.  CM_TEST23, "An option list with 6000 items"
  99.  CM_TEST24, "An option list with 8000 items"
  100.  CM_TEST6, "An option list with 10000 items"
  101.  CM_TEST31, "A tree with 2000 items"
  102.  CM_TEST32, "A tree with 4000 items"
  103.  CM_TEST33, "A tree with 6000 items"
  104.  CM_TEST34, "A tree with 8000 items"
  105.  CM_TEST7, "A tree with 10000 items"
  106.  CM_TEST4, "Use the custom control as a usual listbox"
  107.  CM_TEST41, "A listbox with 2000 items"
  108.  CM_TEST42, "A listbox with 4000 items"
  109.  CM_TEST43, "A listbox with 6000 items"
  110.  CM_TEST44, "A listbox with 8000 items"
  111.  CM_TEST8, "A listbox with 10000 items"
  112. }
  113.  
  114.  
  115. //
  116. // OWL string table
  117. //
  118.  
  119. // EditFile (include\owl\editfile.rc and include\owl\editsear.rc)
  120. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  121. BEGIN
  122.     IDS_CANNOTFIND,             "Cannot find ""%s""."
  123.     IDS_UNTITLED,               "Untitled"
  124.     IDS_UNABLEREAD,             "Unable to read file %s from disk."
  125.     IDS_UNABLEWRITE,            "Unable to write file %s to disk."
  126.     IDS_FILECHANGED,            "The text in the %s file has changed.\n\nDo you want to save the changes?"
  127.     IDS_FILEFILTER,             "Text files (*.TXT)|*.TXT|AllFiles (*.*)|*.*|"
  128. END
  129.  
  130.  
  131. // Exception string resources (include\owl\except.rc)
  132. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  133. BEGIN
  134.     IDS_OWLEXCEPTION,           "ObjectWindows Exception"
  135.     IDS_UNHANDLEDXMSG,          "Unhandled Exception"
  136.     IDS_OKTORESUME,             "OK to resume?"
  137.     IDS_UNKNOWNEXCEPTION,       "Unknown exception"
  138.  
  139.     IDS_UNKNOWNERROR,           "Unknown error"
  140.     IDS_NOAPP,                  "No application object"
  141.     IDS_OUTOFMEMORY,            "Out of memory"
  142.     IDS_INVALIDMODULE,          "Invalid module specified for window"
  143.     IDS_INVALIDMAINWINDOW,      "Invalid MainWindow"
  144.  
  145.     IDS_INVALIDWINDOW,          "Invalid window %s"
  146.     IDS_INVALIDCHILDWINDOW,     "Invalid child window %s"
  147.     IDS_INVALIDCLIENTWINDOW,    "Invalid client window %s"
  148.  
  149.     IDS_CLASSREGISTERFAIL,      "Class registration fail for window %s"
  150.     IDS_CHILDREGISTERFAIL,      "Child class registration fail for window %s"
  151.     IDS_WINDOWCREATEFAIL,       "Create fail for window %s"
  152.     IDS_WINDOWEXECUTEFAIL,      "Execute fail for window %s"
  153.     IDS_CHILDCREATEFAIL,        "Child create fail for window %s"
  154.  
  155.     IDS_MENUFAILURE,            "Menu creation failure"
  156.     IDS_VALIDATORSYNTAX,        "Validator syntax error"
  157.     IDS_PRINTERERROR,           "Printer error"
  158.  
  159.     IDS_LAYOUTINCOMPLETE,       "Incomplete layout constraints specified in window %s"
  160.     IDS_LAYOUTBADRELWIN,        "Invalid relative window specified in layout constraint in window %s"
  161.  
  162.     IDS_GDIFAILURE,             "GDI failure"
  163.     IDS_GDIALLOCFAIL,           "GDI allocate failure"
  164.     IDS_GDICREATEFAIL,          "GDI creation failure"
  165.     IDS_GDIRESLOADFAIL,         "GDI resource load failure"
  166.     IDS_GDIFILEREADFAIL,        "GDI file read failure"
  167.     IDS_GDIDELETEFAIL,          "GDI object %X delete failure"
  168.     IDS_GDIDESTROYFAIL,         "GDI object %X destroy failure"
  169.     IDS_INVALIDDIBHANDLE,       "Invalid DIB handle %X"
  170. END
  171.  
  172.  
  173. // General Window's status bar messages. (include\owl\statusba.rc)
  174. STRINGTABLE
  175. BEGIN
  176.     IDS_MODES                   "EXT|CAPS|NUM|SCRL|OVR|REC"
  177.     SC_SIZE,                    "Changes the size of the window"
  178.     SC_MOVE,                    "Moves the window to another position"
  179.     SC_MINIMIZE,                "Reduces the window to an icon"
  180.     SC_MAXIMIZE,                "Enlarges the window to it maximum size"
  181.     SC_RESTORE,                 "Restores the window to its previous size"
  182.     SC_CLOSE,                   "Closes the window"
  183.     SC_TASKLIST,                "Opens task list"
  184.     SC_NEXTWINDOW,              "Switches to next window"
  185. END
  186.  
  187.  
  188. // Validator messages (include\owl\validate.rc)
  189. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  190. BEGIN
  191.     IDS_VALPXPCONFORM          "Input does not conform to picture:\n""%s"""
  192.     IDS_VALINVALIDCHAR         "Invalid character in input"
  193.     IDS_VALNOTINRANGE          "Value is not in the range %ld to %ld."
  194.     IDS_VALNOTINLIST           "Input is not in valid-list"
  195. END
  196.  
  197.  
  198. //
  199. // Misc application definitions
  200. //
  201.  
  202. // Application ICON
  203. IDI_SDIAPPLICATION ICON "applsdi.ico"
  204.  
  205.  
  206. // About box.
  207.  
  208. // BWCC bitmaps for the about box.
  209. #define IDB_BWCC_ABOUT_ICON     1450
  210. #define IDB_BWCC_ABOUT_ICON2    2450            // This definition is for EGA and related video modes.
  211.  
  212. IDB_BWCC_ABOUT_ICON  BITMAP "borabout.bmp"
  213. IDB_BWCC_ABOUT_ICON2 BITMAP "borabout.bmp"
  214.  
  215. IDD_ABOUT DIALOG 56, 40, 199, 98
  216. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  217. CLASS "bordlg_gray"
  218. CAPTION "About ottest"
  219. FONT 8, "MS Sans Serif"
  220. {
  221.  CONTROL "", -1, "BorShade", BSS_GROUP | BSS_CAPTION | BSS_LEFT | WS_CHILD | WS_VISIBLE, 48, 6, 144, 51
  222.  CONTROL "Version", IDC_VERSION, "BorStatic", SS_LEFT | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 51, 18, 138, 9
  223.  CONTROL "Button", IDB_BWCC_ABOUT_ICON - 1000, "BorBtn", BBS_BITMAP | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 6, 9, 39, 42
  224.  CONTROL "Option Tree Test (OWL)", -1, "BorStatic", SS_LEFT | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 51, 9, 138, 9
  225.  CONTROL "", IDC_COPYRIGHT, "BorStatic", SS_LEFT | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 51, 27, 138, 27
  226.  CONTROL "", IDC_DEBUG, "BorStatic", SS_RIGHT | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 131, 87, 66, 8
  227.  CONTROL "", IDOK, "BorBtn", BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 81, 66, 37, 25
  228. }
  229.  
  230.  
  231. // TInputDialog class dialog box.
  232. IDD_INPUTDIALOG DIALOG 20, 24, 180, 70
  233. STYLE WS_POPUP | WS_CAPTION | DS_SETFONT
  234. CLASS "bordlg"
  235. FONT 8, "Helv"
  236. BEGIN
  237.     LTEXT "", ID_PROMPT, 10, 8, 160, 10, SS_NOPREFIX
  238.     CONTROL "", ID_INPUT, "EDIT", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP | ES_AUTOHSCROLL, 10, 20, 160, 12
  239.     CONTROL "Button", IDOK, "BorBtn", BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 47, 42, 37, 26
  240.     CONTROL "Button", IDCANCEL, "BorBtn", BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 93, 42, 38, 25
  241. END
  242.  
  243.  
  244. // Horizontal slider thumb bitmap for TSlider and VSlider (include\owl\slider.rc)
  245. IDB_HSLIDERTHUMB BITMAP PRELOAD MOVEABLE DISCARDABLE 
  246. BEGIN
  247.     '42 4D 66 01 00 00 00 00 00 00 76 00 00 00 28 00'
  248.     '00 00 12 00 00 00 14 00 00 00 01 00 04 00 00 00'
  249.     '00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00'
  250.     '00 00 10 00 00 00 00 00 00 00 00 00 C0 00 00 C0'
  251.     '00 00 00 C0 C0 00 C0 00 00 00 C0 00 C0 00 C0 C0'
  252.     '00 00 C0 C0 C0 00 80 80 80 00 00 00 FF 00 00 FF'
  253.     '00 00 00 FF FF 00 FF 00 00 00 FF 00 FF 00 FF FF'
  254.     '00 00 FF FF FF 00 BB BB 0B BB BB BB B0 BB BB 00'
  255.     '00 00 BB B0 80 BB BB BB 08 0B BB 00 00 00 BB 08'
  256.     'F8 0B BB B0 87 70 BB 00 00 00 B0 8F F8 80 BB 08'
  257.     '77 77 0B 00 00 00 08 F8 88 88 00 88 88 87 70 00'
  258.     '00 00 0F F7 77 88 00 88 77 77 70 00 00 00 0F F8'
  259.     '88 88 00 88 88 87 70 00 00 00 0F F7 77 88 00 88'
  260.     '77 77 70 00 00 00 0F F8 88 88 00 88 88 87 70 00'
  261.     '00 00 0F F7 77 88 00 88 77 77 70 00 00 00 0F F8'
  262.     '88 88 00 88 88 87 70 00 00 00 0F F7 77 88 00 88'
  263.     '77 77 70 00 00 00 0F F8 88 88 00 88 88 87 70 00'
  264.     '00 00 0F F7 77 88 00 88 77 77 70 00 00 00 0F F8'
  265.     '88 88 00 88 88 87 70 00 00 00 0F F7 77 88 00 88'
  266.     '77 77 70 00 00 00 0F F8 88 88 00 88 88 87 70 00'
  267.     '00 00 0F F7 77 78 00 88 77 77 70 00 00 00 0F FF'
  268.     'FF FF 00 88 88 88 80 00 00 00 B0 00 00 00 BB 00'
  269.     '00 00 0B 00 00 00'
  270. END
  271.  
  272.  
  273. // Vertical slider thumb bitmap for TSlider and HSlider (include\owl\slider.rc)
  274. IDB_VSLIDERTHUMB BITMAP PRELOAD MOVEABLE DISCARDABLE 
  275. BEGIN
  276.     '42 4D 2A 01 00 00 00 00 00 00 76 00 00 00 28 00'
  277.     '00 00 28 00 00 00 09 00 00 00 01 00 04 00 00 00'
  278.     '00 00 B4 00 00 00 00 00 00 00 00 00 00 00 00 00'
  279.     '00 00 10 00 00 00 00 00 00 00 00 00 C0 00 00 C0'
  280.     '00 00 00 C0 C0 00 C0 00 00 00 C0 00 C0 00 C0 C0'
  281.     '00 00 C0 C0 C0 00 80 80 80 00 00 00 FF 00 00 FF'
  282.     '00 00 00 FF FF 00 FF 00 00 00 FF 00 FF 00 FF FF'
  283.     '00 00 FF FF FF 00 B0 00 00 00 00 00 00 00 00 0B'
  284.     'B0 00 00 00 00 00 00 00 00 0B 0F 88 88 88 88 88'
  285.     '88 88 88 80 08 88 88 88 88 88 88 88 88 80 0F 77'
  286.     '77 77 77 77 77 77 77 80 08 77 77 77 77 77 77 77'
  287.     '77 80 0F 77 FF FF FF FF FF FF F7 80 08 77 FF FF'
  288.     'FF FF FF FF F7 80 0F 70 00 00 00 00 00 00 77 80'
  289.     '08 70 00 00 00 00 00 00 77 80 0F 77 77 77 77 77'
  290.     '77 77 77 80 08 77 77 77 77 77 77 77 77 80 0F 77'
  291.     '77 77 77 77 77 77 77 80 08 77 77 77 77 77 77 77'
  292.     '77 80 0F FF FF FF FF FF FF FF FF F0 08 88 88 88'
  293.     '88 88 88 88 88 80 B0 00 00 00 00 00 00 00 00 0B'
  294.     'B0 00 00 00 00 00 00 00 00 0B'
  295. END
  296.  
  297.  
  298. // Version info.
  299. //
  300. #if !defined(__DEBUG_)
  301. // Non-Debug VERSIONINFO
  302. 1 VERSIONINFO LOADONCALL MOVEABLE 
  303. FILEVERSION 1, 0, 0, 0
  304. PRODUCTVERSION 1, 0, 0, 0
  305. FILEFLAGSMASK 0
  306. FILEFLAGS VS_FFI_FILEFLAGSMASK
  307. FILEOS VOS__WINDOWS16
  308. FILETYPE VFT_APP
  309. BEGIN
  310.     BLOCK "StringFileInfo"
  311.     BEGIN
  312.         // Language type = U.S. English (0x0409) and Character Set = Windows, Multilingual(0x04e4)
  313.         BLOCK "040904E4"                            // Matches VarFileInfo Translation hex value.
  314.         BEGIN
  315.             VALUE "CompanyName", "Freeman-Teresa Software\000"
  316.             VALUE "FileDescription", "ottest for Windows\000"
  317.             VALUE "FileVersion", "1.0\000"
  318.             VALUE "InternalName", "ottest\000"
  319.             VALUE "LegalCopyright", "Copyright ⌐ 1994. All Rights Reserved.\000"
  320.             VALUE "LegalTrademarks", "Windows /231 is a trademark of Microsoft Corporation\000"
  321.             VALUE "OriginalFilename", "ottest.EXE\000"
  322.             VALUE "ProductName", "ottest\000"
  323.             VALUE "ProductVersion", "1.0\000"
  324.         END
  325.     END
  326.  
  327.     BLOCK "VarFileInfo"
  328.     BEGIN
  329.         VALUE "Translation", 0x04e4, 0x0409        // U.S. English(0x0409) & Windows Multilingual(0x04e4) 1252
  330.     END
  331.  
  332. END
  333. #else
  334.  
  335. // Debug VERSIONINFO
  336. 1 VERSIONINFO LOADONCALL MOVEABLE 
  337. FILEVERSION 1, 0, 0, 0
  338. PRODUCTVERSION 1, 0, 0, 0
  339. FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE | VS_FF_PATCHED | VS_FF_PRIVATEBUILD | VS_FF_SPECIALBUILD
  340. FILEFLAGS VS_FFI_FILEFLAGSMASK
  341. FILEOS VOS__WINDOWS16
  342. FILETYPE VFT_APP
  343. BEGIN
  344.     BLOCK "StringFileInfo"
  345.     BEGIN
  346.         // Language type = U.S. English (0x0409) and Character Set = Windows, Multilingual(0x04e4)
  347.         BLOCK "040904E4"                            // Matches VarFileInfo Translation hex value.
  348.         BEGIN
  349.             VALUE "CompanyName", "Freeman-Teresa Software\000"
  350.             VALUE "FileDescription", "ottest for Windows\000"
  351.             VALUE "FileVersion", "1.0\000"
  352.             VALUE "InternalName", "ottest\000"
  353.             VALUE "LegalCopyright", "Copyright ⌐ 1994. All Rights Reserved.\000"
  354.             VALUE "LegalTrademarks", "Windows \231 is a trademark of Microsoft Corporation\000"
  355.             VALUE "OriginalFilename", "ottest.EXE\000"
  356.             VALUE "ProductName", "ottest\000"
  357.             VALUE "ProductVersion", "1.0\000"
  358.             VALUE "SpecialBuild", "Debug Version\000"
  359.             VALUE "PrivateBuild", "Built by Kent Tong\000"
  360.         END
  361.     END
  362.  
  363.     BLOCK "VarFileInfo"
  364.     BEGIN
  365.         VALUE "Translation", 0x04e4, 0x0409        // U.S. English(0x0409) & Windows Multilingual(0x04e4) 1252
  366.     END
  367.  
  368. END
  369. #endif
  370.  
  371. DLGTEST DIALOG 110, 39, 197, 194
  372. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  373. CAPTION "Test"
  374. FONT 9, "helv"
  375. {
  376.  DEFPUSHBUTTON "&OK", 1, 155, 10, 34, 14
  377.  LTEXT "", 102, 17, 143, 122, 36, SS_NOPREFIX | WS_GROUP
  378.  GROUPBOX "Description", -1, 10, 128, 135, 58, BS_GROUPBOX
  379.  CTEXT "pos and size of the option tree control", 101, 10, 10, 135, 107, SS_CENTER | WS_BORDER | WS_GROUP
  380. }
  381.  
  382.  
  383.